import pytest
from common.logger import *
@decorate_log
@pytest.fixture()
def order_cancel(order_action):
    """
    :param order_action: 订单操作方法
    :return:
    """
    yield
    '''取消订单'''
    order_action.cancel_order('备注')
    print('取消订单号为{}'.format(order_action.orderNo))

